package cc.javaee.bbs.service.activity;

import cc.javaee.bbs.dao.activity.ActivityFileDao;
import cc.javaee.bbs.model.activity.KbrActivityFile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ActivityFileService{
	@Autowired
	ActivityFileDao activityFileDao;
	
	public List<KbrActivityFile> findById(KbrActivityFile file) {
		List<KbrActivityFile> list= activityFileDao.find(file);
		if(list.size()>0){
			file=list.get(0);
		}
		return list;
	}
	
}
